﻿using WeDonekRpc.Modular;

namespace Shop.StoreGatewayModular.Linq
{
    internal static class LinqHelper
    {
        public static long ToShopId (this IUserState user)
        {
            return user.GetValue<long>("ShopId");
        }
        public static long ToUserId (this IUserState user)
        {
            return user.GetValue<long>("UserId");
        }
    }
}
